Lecture 3 — September 1, 2016 2 Review of Last Lecture

نویسنده

  • William Hoza
چکیده

1 Overview We continue discussing the distinct elements problem. Recall that in this problem, you receive as input a stream S = (x 1 , x 2 ,. . .), with each x i ∈ [n], and you are supposed to compute k = #{v ∈ [n] : v appears in S}. Topics for today: • Review of the algorithm from last lecture. • The LogLog algorithm, which is more space efficient. • Generalizing the algorithm from last lecture to work in the turnstile model. • Space complexity lower bounds via a connection with one-way communication complexity. Recall the algorithm from last lecture: 1. (a) For r = 1 to R ≤ O(log log n δ), in parallel: i. Pick a random hash function h t,r : [n] → [10t] from pairwise independent family H. ii. Record Y t,r = 1 if some v ∈ S satisfies h t,r (v) = 0 0 otherwise. (b) Compute the empirical averagê Y t = 1 R R r=1 Y t,r. (c) Set z t = 1 ifˆY t > 0.14 0 otherwise. (d) Output 2 t zt. Analysis We showed last time that if k < t, then P[z t = 0] ≥ 1 − δ log n , while if k > 2t, then P[z t = 1] ≥ 1 − δ log n. Therefore, by the union bound, the output of the algorithm is within a factor of 2 of k with probability at least 1 − δ. The space used by this algorithm is O((log 2 n) · (log log n + log(1/δ))).

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Lecture 5 — September 8 , 2016

1 Overview In the last lecture we took a more in depth look at Chernoff Bounds and introduced subgaussian and subexponential variables. In this lecture we will continue talking about subgaussian variables and related random variables – subexponential and subgamma, and finally we will give a proof of famous Johnson-Lindenstrauss lemma using property of subgaussian/subgamma variables. Definition ...

متن کامل

Comparing the Effectiveness of Group Discussion and Lecture Methods on the learning of medical sciences students: A Review Study

Introduction: Several studies have compared lecturing and group discussion and reported conflicting results. Due to the role of review studies in preparing reliable research evidence, this review study aimed to compare the effectiveness of lecture and group discussion methods on the learning of medical sciences students. Methods: A review study was conducted. Articles were searched through SID,...

متن کامل

Lecture 4: Covering the Large Spectrum via Dual-sparse Approximation

1 Discrete Fourier analysis In this lecture, we use the dual-sparse approximation theorem from the last lecture to prove some results in discrete Fourier analysis. For simplicity, we restrict ourselves to the setting of G ¿ n 2 , but the theorems hold (when suitably restated) for any finite abelian group G. Fourier analysis over ¿ n 2. We use ¿ 2 {0, 1} to denote the field on two elements. Let ...

متن کامل

Math 140a: Foundations of Real Analysis I

1. Ordered Sets, Ordered Fields, and Completeness 1 1.1. Lecture 1: January 5, 2016 1 1.2. Lecture 2: January 7, 2016 4 1.3. Lecture 3: January 11, 2016 7 1.4. Lecture 4: January 14, 2014 9 2. Sequences and Limits 13 2.1. Lecture 5: January 19, 2016 13 2.2. Lecture 6: January 21, 2016 15 2.3. Lecture 7: January 26, 2016 18 2.4. Lecture 8: January 28, 2016 21 3. Extensions of R: the Extended Rea...

متن کامل

Math 145a Lecture Notes

1 September 2, 2014 5 1.1 Broad Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2 Introduction to Independence . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.3 Example of Independence . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.4 More Surprising Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.5 Escaping . . . . . . . . . . . ....

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2016